import java.util.*;

public class ObjectDrawModel  
{
	private Vector<ModelListener> listenerList;
	private ModelListenerIterator listenerListIterator;
  
	// Define Model state variables here (private)
  
	// End of Model state variables
  
	public ObjectDrawModel() 
	{
		listenerList = new Vector<ModelListener>(5,1);
		listenerListIterator=new ModelListenerIterator(listenerList);
	}
  
	public void addModelListener (ModelListener listener) 
	{
		listenerList.add(listener);
	}
  
	// public get and set methods for Model State Variables go here
	//set methods must call notifyListeners();
  
	// end of public get and set methods
  
	private void notifyListeners() 
	{
		while(listenerListIterator.hasNext()) 
			listenerListIterator.next().ModelUpdated();
	}
	// END OF CLASS
}
    
  